-- ----------------------------------------------------------
--
-- Author: czf
-- date: 2018-11-24
-- description: 外观模式-制造(外观类)
--
-- ----------------------------------------------------------

ShapeMaker = ShapeMaker or BaseClass()

function ShapeMaker:__init()
	self.circle = Circle.New()
	self.rectangle = Rectangle.New()
	self.square = Square.New()
end

function ShapeMaker:__delete()
	self.circle = nil
	self.rectangle = nil
	self.square = nil
end

function ShapeMaker:DrawCircle()
	self.circle:Draw()
end

function ShapeMaker:DrawRectangle()
	self.rectangle:Draw()
end

function ShapeMaker:DrawSquare()
	self.square:Draw()
end